import { Router } from "express";

export interface IPageResponse<T = any> {
  total: number;
  list: T;
}

export interface IResponse<T> {
  code: number;
  msg: string;
  data: null | T;
}

export type TStatus = 0 | 1;


interface IWhiteList {
  path: string;
  methods: string[];
}

/**
 * 路由导出格式
 */
export interface IRouterExport {
  router: Router;
  requestPath: string;
  whiteList?: IWhiteList[];
}